package only.my.railgunys.weapon;

import only.my.railgunys.bean.Character;
import only.my.railgunys.bean.Weapon;

public class WavebreakersFin extends Weapon {

    public WavebreakersFin(int refineLevel, int times) {
        this.atk = 620.0;
        this.subStatValue = 13.8;
        this.refineLevel = refineLevel;
        this.name = "断浪长鳍";
        this.code = 17;
        this.times = times;
    }

    @Override
    public Character subStatEnhance(Character character) {
        character.addAtk(subStatValue);
        return character;
    }

    @Override
    public Character specialAbility(Character character) {
        times=Math.min(times,333);
        character.addIncrease(0.12*times*(1 + (refineLevel - 1) * 0.25));
        return character;
    }
}
